<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script type="text/javascript" src="../../js/jquery-3.6.0.min.js"></script>
<body>
<table border="1">
    <tr>
        <td>id</td>
        <td>图书名称</td>
        <td>图书作者</td>
        <td>图书价格</td>
        <td>状态</td>
        <td>出版时间</td>
    </tr>
    <tr th:each="b:${pageInfo.list}">
        <td th:text="${b.bookname}"></td>
        <td th:text="${b.bookauthor}"></td>
        <td th:text="${b.bookprice}"></td>
        <td th:if="${b.bookstatus==1}?'上架':'下架'"></td>
        <td th:data="b.addtime>"></td>
    </tr>
</table>
<p>当前 <span th:text="${pageInfo.pageNum}"></span> 页,总 <span th:text="${pageInfo.pages}"></span> 页,共 <span
        th:text="${pageInfo.total}"></span> 条记录</p>
<a th:href="@{/book/queryBookList()}">首页</a>
<a th:href="@{/book/queryBookList(pageNum=${pageInfo.hasPreviousPage}?${pageInfo.prePage}:1)}">上一页</a>
<a th:href="@{/book/queryBookList(pageNum=${pageInfo.hasNextPage}?${pageInfo.nextPage}:${pageInfo.pages})}">下一页</a>
<a th:href="@{/book/queryBookList(pageNum=${pageInfo.pages})}">尾页</a>
</body>
</html>